home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
text
/
edit
/
envwww21.lha
/
envWWW21
/
support
/
preview_voyager.ged
< prev
Wrap
Text File
|
1996-11-13
|
1KB
|
60 lines
/* $VER: 1.0, ©1996 Dietmar Eilert. HTML preview for Voyager 1.0 */
OPTIONS RESULTS /* enable return codes */
if (LEFT(ADDRESS(), 6) ~= "GOLDED") then /* not started by GoldEd ? */
address 'GOLDED.1'
'LOCK CURRENT RELEASE=4' /* lock GUI, gain access */
if (RC ~= 0) then
exit
OPTIONS FAILAT 6 /* ignore warnings */
SIGNAL ON SYNTAX /* ensure clean exit */
/* ------------------------ INSERT YOUR CODE HERE: ------------------- */
if (show('P', "MINDWALKER") = 0) then
'REQUEST PROBLEM="Voyager ARexx port not found"'
else do
'QUERY DOC VAR=DOC'
if (exists(DOC)) then
'SAVE ALL'
else do
DOC = "t:preview.html"
'SAVE ALL EXPORT NAME="' || DOC || '"'
end
'UNLOCK'
ADDRESS 'MINDWALKER'
'OPENURL "file://localhost/' || DOC || '"'
exit
end
/* ---------------------------- END OF YOUR CODE --------------------- */
'UNLOCK' /* VERY important: unlock GUI */
exit
SYNTAX:
SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
'UNLOCK'
exit